/*
 * CPoison.java
 *
 * Copyright (c) 2009 Giles Millward (Manigra). All rights reserved.
 *
 * This file is part of JRogueDPS.
 *
 * JRogueDPS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * JRogueDPS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with JRogueDPS.  If not, see <http://www.gnu.org/licenses/>.
 */

package dpssystem;

import dpsstats.CDamageStats;
import java.util.ArrayList;

/**
 *
 * @author Mani
 */
public abstract class CPoison {
    public enum PoisonType {NONE, INSTANT, WOUND, ANESTHETIC, DEADLY};

    public String m_name;
    public PoisonType m_type;
    public CWeapon m_weapon;
    public CDamageStats m_damageStats;
    public CSim m_sim;

    CPoison (String p_name, PoisonType p_type, CWeapon p_weapon, CDamageStats p_damageStats, CSim p_sim)
    {
        m_name = p_name;
        m_weapon = p_weapon;
        m_damageStats = p_damageStats;
        m_sim = p_sim;
        m_type = p_type;
        
        if (p_weapon.m_mainHand)
        {
            m_damageStats.setName("MH " + p_name);
        }
        else
        {
            m_damageStats.setName("OH " + p_name);
        }
    }

    // Implement this for what event is needed
    public abstract void procPoison(boolean p_shiv);
}
